//
//  XKSecurityCode.h
//  XKSecurityCenter
//
//  Created by xiaoka on 2019/2/20.
//  Copyright © 2019年 xiaoka. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface XKSecurityCode : NSObject

/**
 @brief 获取单例
 */
+ (XKSecurityCode *)defaultSingleton;

/**
 * 监听截屏
 @param completionHandler 监听回调
 */
- (void)observerScreensWithCompletionHandler:(void(^)(void))completionHandler;


/**
 * 检查app是否有附加tweak
 @return YES/有 NO/无
 */
- (BOOL)checkAppHasTweak;


/**
 * 检查是否有越狱环境
 @return YES/有 NO/无
 */
- (BOOL)checkAppJailbreak;

/**
 * 检查是否有调试器
 @return YES/有 NO/无
 */
- (BOOL)isDebuggerPresent;

/**
 * 检查是否有动态库注入
 @return YES/有 NO/无
 */
- (BOOL)checkInjector;

@end

NS_ASSUME_NONNULL_END
